<?php

namespace process;

use app\services\ActivityService;
use app\services\CoinService;
use app\services\OrderService;
use app\services\PrizeDrawService;
use app\services\TransferService;
use app\services\UserLevelService;
use app\services\UserPropertyService;
use app\services\UserTeamService;
use support\Db;
use Workerman\Crontab\Crontab;

class Task
{
    public function onWorkerStart()
    {
        new Crontab('*/30 * * * * *', function () {
            TransferService::queryExecuteResult();
            UserPropertyService::resetBirthdayPointsOnNewYear();
            UserPropertyService::giveBirthdayPoints();
        });
    }
}